<?php
/**
 * Mapeo de la configuración XML a objetos.
 *
 * Representa a una lista de objetos mapping.
 *
 * @author Matias Mirabelli <project@moyrax.com>
 *
 * @package Kingorm
 */
class CollectionMap extends BaseMap
{
    public function __set( $name, $value )
	{
		if ( !isset($value) )
			return;

		if ( !property_exists($this, $name) )
		{
			$this->$name = array();

			array_splice( $this->$name, 0 );
		}

		array_push( $this->$name, $value );
    }
}
?>
